changes to allow manually setting form element errors