do some operations before redirect to qq login