Fixing Next question logic. Now checks whether the form submit is a resubmit
build