fixed an error in validationFunctions and editDish