changed error text and removing error when pressed button