Commit error checking on input