refs None, fixed bug on anonymous account don't have user_type.