Changed file submission, added file validation.