Implement validations for create and update