finished register and login