testing saving and validation of salted password