Checks for presence of existing session

Amount of code to manipulate the DOM quickly getting out of hand!