-- encrypt password, auto login when register complete