added javascript testing - error messages removed on input