test that user is redirected to profile page on login