Handle string literals for login provider

"provider instanceof String" evaluates to false for string literals (i.e. what was passed into the login argument for provider here)