Validate some attributes