fixed a bug about error layout. fixed a bug about authentication in dashboard.