Bug fixes

Fixed more BOMs and changed the error syntax within SSO.php