Modified pom file and added validations to generator