logout action and view + set encryption key