/register and /login reply with username and role