Logout /profile link bug fix