adding mod spark authentication