Fixed bug that caused a Nil error when a non-latched account tried to lo...

...gin

If a user that is not latched tries to login, there is an internal
server error because @latch.account_id is nil