added required and error messages to use section