Add proper validation to modSession id