Adding logged in check on load