implemented method To chech whether the pom is valid or not