Validate file extension