Figured out what was causing the elusive form validation bug. Also added more console debug information.