Set username cookie on valid registration.
Reject username if already exists.

This commit passes the automatic grader of assignment 4, part 1.