Javascript mailform validation doesn't check fields of type 'file'