validations and filepicker