cleaned basic password management and covered all test cases