add in error messages and new form js