Implemented login and a basic logout. Still need to delete tokens etc