Clear error messages with click in input box and associated tests