if it keeps coming loose and you have tightened it right up its ether going to be a worn crank arm or BB . i had the same problem both the square taper on the crank and the axle of the bottom bracket were worn , as far as i know the only way to sort this is to replace them