A better callback approach for "login" and "create subdomain"