Fix session check upon submit

It was breaking on the tree forms and not allowing a non-authenticated user to register themselves.