I have tried rearranging the includes, but it still throws the same error.
If I remove the Security Assist SB, then it doesn't throw an error.
The strange thing is that the same Security Assist SB is on the two preceeding pages and no error is encouintered with those. I copied and pasted the code from one of these pages directly into this page in the same order and it threw the error again. There must be a conflict with some other code somehow, but it doesn't work.