Ensure an input is recieved

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>