add  the user login demo code and some typo and bugfix