Form validation on empty commit