Fix login to redirect to home page instead of user detail page