Fix a few bugs and now it can successfully let users to sigup git status