Added middleware to check login status of API calls