debugged authentication