Cookie redirects to the userProfile page