Finish register and login