test redirect from login to user profile page