add settings activity, and fix a bug on user register