add the cookie for user login