add finish() when login done