modify and upgrade login and securimage mode