Added invalid_user json response code. handle duration blocks