update and test password validation

tasx-10