modify login check and change the bootstrap js