fixed user create logic