A Criterion For Ergodicity of Non-uniformly hyperbolic Diffeomorphisms