added privilege validation subscript to all branches in AccountFunction