fixed issue with permissions check order, updated permissions error message