Added validation to the data passed via the promp