Fixed cid, now starts at 1. Also added max length of input fields to match database