Adding debug authentication