Check validity on attributes