added Caoimhin's javascript validation function to fileupload form. Also made submit button disabled until valid file is selected.