fixed bug in create user