Update login & register function spec.