completed register and check unique username with json output.
completed login with json output