Added user authentication and authorization