added a login check to the homepage