added validation to updating of restaurants