add saving first network when registering when github or twitter, few improvements