update insecure login code for 0.7.2 with new login handler system