Added logout rout
Added some debugging prints, they will be removed