Fixed login routing, added logout