added redirect to the original url after login to the closed forum mode middleware