added working authentication