Added middleware to redirect the app to https