fix error with create user function