Made a common function for user_id_cookie

replaced in these handlers:
profile
editEmail
editPassword
frontpage
foodpage