validation of map