user will be redirected to their profile page if they are already logged in