add getLevel method to User model