added new method to the user entity class