validates the presence of name