check for empty name