#34 jQuery script fixed to display error message only when needed.