fixed training json errors; got training form to work