Updated javascript validation and DB insert on Create item form