validation of input added