added form validation for application page