Added task 2(Odd rows) and 4(Validate input)