finished register and login chapter