Worked towards authentication