fixed incorrect datetime usage in templates
redirect to site root after logout