update passwordMatches method