[auth] added salt and sql safety checks;