refactor devise authenticate filter for dashboards controllers