fixed JS issue occurring in chrome in sso_error function