Added some validation of the default session and javascript session