removed bug in create user method