form validation + warnings