add error message when user enter invalid coordinate