added validation for location
Merge pull request #49 from hasgeek/validation

added validation for location