Automatic Redirection in Login and Registration.