Added user authentication and controller usage