working on checking for empty name value