just some small extensions to form validation