If you submit the form with less than 6 characters, an alert message will occur.
Note: The oninvalid event is not supported in Internet Explorer 9 and earlier or Safari.