Adding validation styling to input box