added validation in session creation call