Fix async issue when creating user