Adding a comment to the form validation and a minor fix to the function.