fix better exception handling (NPE on login)