Session wasn't retrieved correctly and removed redundant closing tags