fxed problem with HMAC an Use SID on Frontend, minor fixes