passwords validaton fix