Added a simple authorization system.