fix simple validation error when the name field is empty but in focus