user automatically logged in after registration

I'm automatically redirecting the user to the success page upon
registration so that they don't have to log in. I have added register
failed and register success pages to better fix the problem. The login
script will be fixed next.