Cleaning up authentication module