Fixed #12 - implemented authorization