Change private method to protected in User Repository