Removed the encryptedPassword variable and made the getPassword() to dynamically return the encrypted password