change User to UserEntity