added middleware to redirect to https - not sure if it will work