Add validation to location model