refactor functional tests
Add test for hiding error message when the user starts typing
Add javascript tests