add login and permission manage.