added file extension test on submit