Error handling done for Session creation if user name is null