adding social auth middleware