Cannot login in sites with custom domain