fix some bug in usermgr.py, include:
1. use None value as default
2. support home dir and login config