Don't show submit to server when there is validation errors