Fixed logger
Added authorization