Adding validation on the session