updated html with empty container for error message, created validate function passing through without any console errors