added validation to new recipe and update reciepe