Adding logout functinoality.