[Task1] Implemented Authentication mechanism