Adde a bit more validation in validateAccess()