Adds user authentication to user controller