validate commit