Added getCurrentTime, fixed logout