Added error checking for user's location incase of invalid location
data.