Fixed sessions Bug, changed token generation