Fixed redirection after user logged in