began implementing js to store file and validate fields