Validating file type and maximum file size