Fixed login failure when username contained a comma