Added different templates for login/register and portal