Changed the order of parameters in the getPassword method.