added validations for coordinates