Add password features and appropriate test cases to User