Fix pageLoader to check for logins correctly