Adding a attribute to store default value.
First check for value attribute from xml then for default.
Fixing checkbox field after doing unit test.
Adding __get in required field classes to access protected members.