Validate Submit Creation

Created a .js file to validate the submissions