Fixed login and portals API call