Adding validation functionality
Adding validation for inhabitant