Added exception parameter to login errorCallback