fixed bug. set_sign_in_cookie