fix bug of login in the other page