Fixed redirection issues on login/create account.
Removed debug code.