added verification of valid lat and long values