remove double error message in login page
fix bug: dashboard cannot load image before this