SWC-1660: fix login forms so that Portal app is not re-initialized on login