Add Input Frame Class

Add an input frame class and change input validtion to input panel.