Password Validation refractor