removed undefined tabs
logs user out on server error