added line to hide error messages after successful javascript callback