Implemented authentication and authorization