updating textfield background color considering is search text is valid