Validation for directions input boxes