added validation to the form on application page