minor comments
added user recording on logout