Ruby version
added logout feature