Implemented basic authorization