add the check if the distance is more than 500 km

and change the color of input and return ErrorDistance