Checks and balances

* Check if the plan is cancelled, if so redirect
* Check if the plan is finalized, if so redirect
* Instead of unsetting variables and getting strange results, setup
redirect on all AM/account level errors
* Rearranged some logic for more top-down cohesion