modify some bugs
mkdir before setting user profile
Merge pull request #24 from danny821014/master

fix some bugs