revises authorize method to return boolean