remove some duplicate code
move the sleep after creating the user