Modified the nameExists to getPassword instead.