+Theme Fix +XSS Stoppage

I added a simple little fix that solves the problem of there not being a
theme at all if a user is not logged in, I also added code to prevent
XSS attacks through many forms, I'll be doing more in-depth security
checking with other tools and some professionals soon.