fixed error on User model