record userid after login