write the feature specs for signup, and fix some bugs.