Auth cookie fixes. Class authentificator added