reference to undefined exception variable

Noticed it when trying to login, just added the variable.