add tool mainwindow and http post request finished when a user try to login