added form validation with message