use nil? instead of blank? for name error checking