allication form validation + refactoring classes