add login and register's interface