add createLocalUser with input 3 modes