Changed base template to see if user is authenticated