yup you got it :)....would have posted in a bit more detail but was in the middle of a few things at the time.

thinking a bit more about it though this may break the next feature when users log in from other pages and are supposed to be redirected back there.

for example if your not logged in and try upload it will redirect you back to the upload.php page when you sign in...but with the change i said i think taking you back to the index page will overwrite it.

depends if that bothers you i guess. also there is a login button on the signup page incase you forgot.