Updated UserModel with last login function