Data validation implemented