update borders on input boxes