Finish register & login & logout