Refactored masking password.