Bug fixes and added error reporting to all forms.