Implemented authorization with tokens.