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

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