Check for existing user in Moodle database