Updated the fmt.Errorf to log.Fatalf