adding logout action and redefining a few routes (register and login)