number is 1 to 7 and if input 8 display invalid number