Fixed user create function