Now properly redirects to profile page after first login.