fix #44 user without token cannot access the page. errors will be displaed and redirected to login page