Checks if user is logged in on starting up Angular app.