Code clean up, added auth provider to logger