Added Checks to insert to verify input