Updating input elements class names