Fixed getting UserID from cookie