Fixed some php errors and added additional html form fields.