When user's session is not valid and he/she reloads profile page, then a page with json object (error: You have to sign in) appears. Solved: user is redirect to home page with signin menu.