added extensive server-side validations for creating and updating meals