Adding error messages to nonfield inputs