implemented validate method and added tests
implemented validate method and added tests
implemented validate method and added tests
working on validator and persistence