Modified and rename Log class
Added token generation and validation to Session