Changed the api key access mask validation check to a bitwise operation.