fixing error message handlign in ssl version of login