login and redirect to profile