refactoring startup form with html classes and validation errors