Fixed logging out when going into profile page from side bar.