Implemented authorization headers properly