fix login redirect error page