Fixed bug introduced by commit f381b5f9220eebb314f13f580ce441dbefa573

The commit introduced a bug that caused MESS to crash when user
attempted to login with bad ID