bug fixes, added RequiredIf validator and updated example with usage