Changing reference to variables in sslonly templates and making my conditionals less dumb.