switch user type when registration