Fixing returned password type