Added flashes, login/logout messages and errors