fixed redirection after logging in