Extract form class and add basic tests
Extract required validator
Test hasErrors
Test errors() and bind()