bug #4797 :  When authenticating a user, get the Domain instance corresponding to the identifier passed in the request; So, if the identifier isn't correct, the instance doesn't match to any existing domains and the authentication fails