user create function fix