added validation for locations in users