Refactored getPassword() so it's less... weird...