Fixed user creation bugs