fixed user creation bugs