Yes, I agree with AbusiveWombat. If you have PHP version 4.1.0 or higher then just use $SESSION. The session_register() function requires register_globals to be on (which is a security risk). Just use $SESSION instead.
You cannot have a space in this like so:
?message=incorrect login
You should urlencode() it first!
Please note that the header() with location command does not redirect right there and then when it's executed. It actually redirects when your script ends or an exit is reached. So, to ensure no logic flow problems in your script, you should have an exit right after every header() with location to force redirection to occur immediately.