Add getPassword method