Input validation is added.