App now redirects to relative login page and does not require the host setting.