added same meal validation when logging a meal as when scheduling it.