added logout()