Secure session; Fix uniqneness validation