redirect the user to the profile page when logged in