Implemented Custom Authentication