validate the fields of member