resolved all javascript errors caused by typos
need to serialize form data