added login/logout routes and POCcode