Clean code of ReadPassword