better validation for accessclass, fixes #423