removed type=submit on buttons further down in code, added required to person's name
put type=submit back
added comments around new functions