complete register and login demo