Validation and Insert Function Added

Added a new insert function for a new service and validation for the
input fields