validations done and uploading images locally