Updated rest project.

And how we deal with already registered errors since the service now return 400s.
Added ui test for duplicate usernames.
Fixed ui test.

Updated rest project.