Added authentication part 2