Added basic validation hook to the Service class.