added JS validation for item form, so that would not need to reload image