recored login user in cookie