Hii there,
This is taking place because of bouncing. Bouncing is seen in mechanical switches and to solve suh problem you need to debounce the signal. this can be done both by hardware and software. In hardware you can use the chip 74C14N, this should solve your problem.