bug correction in password class