Fix bug DNN-4842: need check custom login/register page set in portal and redirect to the specific page.