Fixing error message behavior and radio button events