Refactor input filter handling

Refactor some bugs in the input.
Add message for non integer input for coordinate
and message for colour which has integer in it.