implemented signout functionality