Cleaning up authentication