adding getPasswordData functionality