Authorization

Added authorization and authentication.