Refactored user registerExternalUser() to registerOrLoginExternalUser()