add a valid? method to Record