fixed logout problem on myProfile page.