Checking if a user is looged in and changes the menu in index accordenely