add registry and login function