added active model validation with tests
added boolean clas