Enable LoginBot and clean the code