added validation for recipe