Login logout implemented accurately(hopefully)