Better form validation and ML error messages