Adding user authentication for library access