User identity and fix bug

-User now has name
-Huge bug in loop, before while looping, only one tuple is looped.
-test.erl to test