Fixed some form validation errors, added debugging alerts