log more errors, add class to name inputs