add frame and its number validation