added redirect to login for profile