add login and register.