error validation via rivets