update error css and error message text