added assert to user creation