fixed minor bug in user creation