sessions setting and further validations done