Added custom auth middleware to handle fb auth errors