Added javascript tests, error messages now dissapear on input
error message disappears on click too