account name check to avoid segfault from database access