fix issue when get user details from sessionStorage