login, and register completed.