add validation for area module and update sql