Fixed a critical bug that would prevent login.

Fixes a syntax error in the Exceptions class as well as a logic error
that would result in an exception being thrown upon login, or would
cause an infinite login loop.