Add logout action and display login errors