using state_machine to check form status and modifying workflow