Added code to migrate legacy role on user entry to the system.