added logout functionality. Need logout url protection