Added terms agreement middleware for each login