fix error  in user model