Added admin functionality and authorization